package com.ruoyi.system.yue;

import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class JieMq {

    @RabbitListener(queues = "querys")
    public void demo(Message message, Channel channel){
        System.out.println("mq消息》》》》》》》》》》》"+new String(message.getBody()));
    }
}
